<script setup>
const props = defineProps({
  value: String
})
const emit = defineEmits(['submit'])
const submit=()=>{
    emit('submit', '10')
}
</script>

<template>
    <div class="about">
      <h1>子组件</h1>
      <p>子组件的值：{{value}}</p>
      <button @click="submit">点击修改父组件的值</button>
    </div>
  </template>
  
  <style>
  
</style>
  